diff options
author | Lorenz Diener <[email protected]> | 2018-04-18 22:07:03 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-04-18 22:07:03 +0200 |
commit | bc7b9defe8b72b6ab14ade6828a98f4d6e82b1de (patch) | |
tree | 6cd17b03100aa61c1d0a224771577601a1851f59 /tests/cassettes/test_status_post[Content warning-private].yaml | |
parent | 64ec9e20987072692227d8817d9fd99d497fea5e (diff) | |
download | mastodon.py-bc7b9defe8b72b6ab14ade6828a98f4d6e82b1de.tar.gz |
Attempt 2 at fixing the tests for travis
Diffstat (limited to 'tests/cassettes/test_status_post[Content warning-private].yaml')
-rw-r--r-- | tests/cassettes/test_status_post[Content warning-private].yaml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/tests/cassettes/test_status_post[Content warning-private].yaml b/tests/cassettes/test_status_post[Content warning-private].yaml index 34bd1ad..14a8b5f 100644 --- a/tests/cassettes/test_status_post[Content warning-private].yaml +++ b/tests/cassettes/test_status_post[Content warning-private].yaml | |||
@@ -56,4 +56,61 @@ interactions: | |||
56 | X-XSS-Protection: [1; mode=block] | 56 | X-XSS-Protection: [1; mode=block] |
57 | content-length: ['2'] | 57 | content-length: ['2'] |
58 | status: {code: 200, message: OK} | 58 | status: {code: 200, message: OK} |
59 | - request: | ||
60 | body: status=Toot%21&visibility=private&spoiler_text=Content+warning | ||
61 | headers: | ||
62 | Accept: ['*/*'] | ||
63 | Accept-Encoding: ['gzip, deflate'] | ||
64 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
65 | Connection: [keep-alive] | ||
66 | Content-Length: ['62'] | ||
67 | Content-Type: [application/x-www-form-urlencoded] | ||
68 | User-Agent: [python-requests/2.9.1] | ||
69 | method: POST | ||
70 | uri: http://localhost:3000/api/v1/statuses | ||
71 | response: | ||
72 | body: {string: '{"id":"99882235487444634","created_at":"2018-04-18T20:06:02.448Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content | ||
73 | warning","visibility":"private","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99882235487444634","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882235487444634","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"reblog":null,"application":{"name":"Mastodon.py | ||
74 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
75 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI | ||
76 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":21},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | ||
77 | headers: | ||
78 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
79 | Content-Type: [application/json; charset=utf-8] | ||
80 | ETag: [W/"5f398ba60bc64e9e20092cf1ce00b7e2"] | ||
81 | Transfer-Encoding: [chunked] | ||
82 | Vary: ['Accept-Encoding, Origin'] | ||
83 | X-Content-Type-Options: [nosniff] | ||
84 | X-Frame-Options: [SAMEORIGIN] | ||
85 | X-Request-Id: [8bf88b23-f961-4e7c-b00c-f5bc02ff948b] | ||
86 | X-Runtime: ['0.502177'] | ||
87 | X-XSS-Protection: [1; mode=block] | ||
88 | content-length: ['1397'] | ||
89 | status: {code: 200, message: OK} | ||
90 | - request: | ||
91 | body: null | ||
92 | headers: | ||
93 | Accept: ['*/*'] | ||
94 | Accept-Encoding: ['gzip, deflate'] | ||
95 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
96 | Connection: [keep-alive] | ||
97 | Content-Length: ['0'] | ||
98 | User-Agent: [python-requests/2.9.1] | ||
99 | method: DELETE | ||
100 | uri: http://localhost:3000/api/v1/statuses/99882235487444634 | ||
101 | response: | ||
102 | body: {string: '{}'} | ||
103 | headers: | ||
104 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
105 | Content-Type: [application/json; charset=utf-8] | ||
106 | ETag: [W/"fa5cea1a9772db82d8d13c6d8b03c3e2"] | ||
107 | Transfer-Encoding: [chunked] | ||
108 | Vary: ['Accept-Encoding, Origin'] | ||
109 | X-Content-Type-Options: [nosniff] | ||
110 | X-Frame-Options: [SAMEORIGIN] | ||
111 | X-Request-Id: [1a0caac6-52f5-429e-9a3f-6a619b799289] | ||
112 | X-Runtime: ['0.178412'] | ||
113 | X-XSS-Protection: [1; mode=block] | ||
114 | content-length: ['2'] | ||
115 | status: {code: 200, message: OK} | ||
59 | version: 1 | 116 | version: 1 |